Adds object representation code