homework for the intro to computer science class with karel++