Made Entity an abstract class.