Solutions for excersize 1 and partly 2