Add code for sphere and box.