Finished homework for class 6