Assigment2 - Solutions to problems 2a-2d