fun with my RPi. newbie code alert, please don't judge