google 'set comprehensions'--that's another cool way of doing this!