Now using pointer to object instances instead of object instances as class attributes