created an object with methods to test input values