A nail gun can be used to attach shingles to a roof.