Code for exercise 6

Code is non functional!