Implemented next()

Haven't tested them yet. Need to do that.