Extend the example:
- read a button
- setting a pin to high state
- setting a pin to low state
- close used pins