second homework ver. 1.1