Solution for assignment 2 with comments