Added the create sample file function
Now uses the sample file function from utils