Finished prog assignment2