Creating file based on attributes
Handle pointer semantics