Use Hash instead of Set class