Abstract object class, triangle and  sphere edited.