adds Duration and Size as classes, adds testing