edited  programassignment2