explored writing to and reading from files