updated homework and lecture examples