what is a duty?