Got chapter 4 exercise 5 working (2 different version of the sequence function)