ex1.11 working