create_item function.
Fixed a dumb bug