Hi, would it be possible to share what paper or source you followed for the code . Didn't get the need of some part of the code like repairment.