add documentation for assignment4