Implementing a Simple Machine Learning Model for a Robotic Task