Added example for using the Entity class