cleaned up ofDuration example