Fixing ID problem

Fixing a silly problem--centralized ID of objects to the base class