I just got my Arduino Mega and have been experimenting with it. Although really simple due to limited hardware, this is one of first mini-projects that I have successfully completed.
Essentially the program will boot and run the setup, increment the servo angle one degree from the initial angle position until it reaches 180 degrees. Once 180 degrees has been reached, it will tell the servo to go to zero degrees and run the incrementing loop again. While this loop runs, the green LED will shine until angles 45, 90, or 135 are hit at which the red LED will shine. Again, really simple.