You have to wrap your code into this
<YOUR CODE GOES HERE?. Replace key with word code in order this to work.
About the third error, the constructor requires the 1st argument to be a String and...