added multiple functionalities or file read and write