added some code in comments to be tested later on the RPi