Fix output format for class methods