In-class work: Optimization Methods