How to make a pyramid and a switch