working on problem 6
Problem 6 finished
finsihed problem 6