Code I have written for Raspberry Pi