add function assignmentlibrary finished, update and delete still need work