There is no such thing called plagiarism except if you simply copy and paste stuff you didn't write.
But if you improve it and refer the original idea to the owner this will be called creativity and being smart.
Ideas can't be found out of nowhere, it is transferred to us from others in parts from different sources, and we compile and form them based on what our background demand and our knowledge reach.