Programs using Set and Maps