if got wrong can help me to correct it
You tell me, does it meet your assignments requirements? Personally, I don't like it because it's not your code, IMO, and that's just not the way to learn programming.