Resolved by removing method and add curly brace at the end