attempt
robotics tutorial
some refactoring