My work on the optimization exercises