Added create functionality

Finished create functionality