Commit Exercise 3 problems 1 and 2