saved code from pins controller lesson