Created objective function, close #3
Merge pull request #5 from NathanDeMaria/OptimizeSomething

Created objective function, close #3