fixed issue 41: see lesson/2/theta as an example