Elegy has been used as a literary form for centuries, with examples dating back to ancient Greek and Roman literature.