Move class definitions to an Object

Allow next, prev, first and last to be overridden this way.
Bump version