Created 'create' function
Implementing write function