appendix b an example of back propagation algorithm