Use self.__class__ in get_next && get_previous to allow inheritance