added assignment 8 and 9