homework 2 version 3