updated Assignment 8 and 9