Adding the Method Function

Also deleting the old version of the flow chart and saving a pdf one.
with the correct file name.

Start proposing the main code and outputs