Added end() method