Using hashes in format_source method