Answer to Assignement 2