Updated code to meet most of the requirements of the assignment