Add extended class for active record