solved exercise2_1