finished functions and homework for functions