First commit of non-working rectangles programme