Lab assignment #3 for cs2010 with functions included.