add second solution for first task in homework2