add exercise 1.5 implementation