goNext() method implemented