completed homework-6 part-1