Added exercise 1.
Fixed implicit function declaration warning.