implemented duration method