added assignment 1c,d