Add hierarchy sample

The arm doesn't really work, probably because of the mess of angle
conversions from degrees to radians. If you want, pull request it.