Working with sets and few operations on them