It will not work if you simply copy / paste.
I suggest you use what I shared as reference and build based on your needs.