lecture10 almost done