Robot name refactor

First attempt at refactoring the robot name exercise
Keep a blank line before and after `private`.