added saveFile() function in InMemoryStorage class