Worked on Sort, edited add and set fucntions