pass in functions not values for problem2