ideally with a cost function that actually has a minimum
ideally with a cost function that actually has a minimum