Added fun with sorted sets

Change-Id: I79f27d861c21f3fa9fcdf461990764711fa95fc2