company centre added, cost function adjusted, working, result acceptable