Added a create method to the snippet