Obtaining Transfer Function Using Block Diagram Reduction