Adding method to the print file