Removed a throws clause and an error in the code.