added very begining of the gpio part of the code