How could I be adding the function of "working" and the "direction" ?, I needed to be implementing this in my project. Thanks