added Camera and GridDetector class