duplicate code eliminiation
Set difference implementation and test