Initial checkin with two functions and testing code