This is the code that we wrote with professor Khaja during 9/27/14 in class