update assignment1 for program 3,4,5,6