creates generate_guid method in the adventure model