Added the cEntity class to handle interpolation