I did assignment A2.4 and A2.5