def create method