worked on pixel class, intersection for rectangle and cube