Made the internal classes sealed.