Here you can find examples and code's samples of some plugins. In some cases this is the good practice to learn code structure and begin to study plugin's development.