Demonstrate the use of Path

Path is a class from java.nio.file.*
Write and Read user-defined objects