Code for circuit 7 - Buttons