Some code examples from different webs and my own code