Assignment #1 for cs2010