Chapter 10: add moveBy method.