modded lab4 code, has nice sphere