Goal-Oriented Machine Learning System Design