finalizing assignment 1