Assignment 9 continued part