assignment2, lab 2.2