added andPrint method