simple exercise of file reader done