BlackBerry hits its stride as a software company