add assign 3 solutions

post solutions to written assign 3 questions