Exercise 10d & generateLowerInterval