I have written projects where I'd consider a handful of lines of code to be the core central tenant of the entire project that everything else is built up around. Copy those lines and everything else is scaffolding that falls out naturally from the development process.