using sort and unique
using sort and unique