This is my fitting code, I used for my project