share scala homework 2 - set implementation