Added printTitle method