Add definitions for ref classes and their methods.
wip