Refactoring the code a bit
Added code to find rectangles in an video stream