I did it this way.. https://dpaste.de/1M5tA/
what do you say about it