Some code examples by me.