Code from Assignment 4 ITC115