functions and object homework