lab 2 for Columbia's cs course COMS3157