Refactored code
Added BufferReader