Adding class Duration.