CS1102 Assignment 5