Homework 6 program2

Updated homework6 program2