finished last part of the assignment