added duration class