The state now inherit from Entity.