Implement 'next' and 'previous' methods