Reordering base class so xpoints is initialized