Well done, that's exactly what you're supposed to do with those sample pieces of code and your Raspberry. Download, hack, run, hack a bit more until it does what you want.
Criticising any questions is banned on this forum.
Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.