Returned code to Duke CS 308 standard formatting.