made the occurrences instance variable