adding sample object detection code for reference