split out definitions into objects.c from objects.h