Solutions for assignment 2 challengues