update my part

implement the analysis function basically