Implement exercise 1.5