second homework ver. 1.2