added peek() and read() method, which are Scanner's primary operations