Creating WriteReadObjectFromFileSample class (write simple object to file and then read it)