Beginning code for using sets in memory to keep track