working on last lecture