Versions 5.3 and 5.8 are more than 6 years old and most likely will not work with this tutorial sample code. It's also not recommended to use an unsupported version in production.
If you want to make your license up-to-date please contact sales@daypilot.org (don't forget to include your order number) to see the upgrade options.