How to build a robot