Created class to represent an ItemOcccurance
Using the new ItemOccurance objects
Added behaviour
Added the timstamp as a parameter
If maxTime is 0, I have no tolerence for time

Hack-ish but works