read() method added