Adding initial code for forward example