Moved the code provided by coursera to be after the first set of problems
Assignment 3: problems 7, 8 and tests for them