Exercise - Optimize a model by using cost functions

Completed