Yes, a bracket was missing and the semicolon was absent in two places.Also there was a spelling error.