Fixed syntax error at 'method'; expected '}