Hey why not try searching for examples in Code Playground? a lot of people had done that I believe.
You can certainly learn by viewing their codes. You can also make modifications as you go learning through trial and error.
But mind not to claim code authorship, some people are sensitive about that. And SoloLearn also dislikes plagiarism, so take care not to do that : )