Printing method declarations properly