would somebody like to help with a program to make a submarine?

I know the ESC is controlled with PWM. Now getting the arduino to read what I want from the nunchuch and have the ESC do what I want is were my problem lies. Today I am going to try to get some of the other codes to work for the nunchuck. I think they will help me better if I can get them to work