trying to set up a light sensor to run a continuous servo and motor

I have just been using the example codes from the arduino application.
I haven't managed to 'merge' the code.

And yes i have been able to set up the components on their own, i just can't get them working together.