Another way to say "a graphite pencil is for writing" is "Writing is done by a graphite pencil."