Extending work without plagiarism
Plagiarism is passing someone else's work off as your own. As long as your paper makes clear exactly what is new and what is borrowed from previous work, and cites the previous work accordingly, there is no danger of plagiarism.