added index, new, and create methods