Defining duration object