problem 45, sets are useful