added my solution to assignment 1, 2 and 7