Introduce "speed" attribute

fixes #20