Second homework for lab 2 and 3