add HashMap application and sorting