add two numbers using static methods