added homework to with assignment operator