assignment 1 problem 2 - done till words obtaining