Finally found the error.
Added comments.
Added test cases.
Renamed assignment1 assignment2. Downloaded assignment5.