Solve exercise 1