Running basic objective function