Added printInfo() function