Removed extra `}` in the function defition