forward pass finished and tested.