A Canadian flag flies at BlackBerry's headquarters in Waterloo, Ont., Tuesday, July 9, 2013. Blackberry plans to sell most of its Canadian real estate holdings as it works to shore up its business under new management.THE CANADIAN PRESS/Geoff Robins