working on lecture9