In-class work: Optimization with Krylov Methods