One solution for Problem 2 evaluated