Solution for Problem 7
Starting to solve Problem 8