Object lifecycles : modeling the world in states