Creating methods for read/write.