Using BufferReader instead of Scanner