add code: ForwardAlgorithm