added assignment2, 1a