Class on death teaches students how to live