add solution for homework 1.1