Raspberry pi programming challenge