Added exercise 6 and some prototyping