added rest of ex1b