working on lec 8: python