forward backward working with duration constraints. next step: speed