i need examples for learning
learning by "studying examples" is just about the worst method there is.
You will end up with bugs in code you do not understand (= bugs you can not resolve) and worse.
The only 'value' from an example I can think of is that after you have written your own code and tried to debug it, sometimes an 'example' can show a thing you have missed.
Erik