Added three sample codes for controle