compsci 230 assignment 2 2012 2nd semester