Here is the code, it is a mix between the code you shared and the video, because I think your version is not complete: some parenthesis are missing and there is no EMA34 condition:
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.