Adding Homework 6 - Working upto Q. 6