Nearly finished optimization examples