Not sure why the outcome looks inaccurate, commit just for having modf solution backuped