Created abstract entity and basic exception system.