Sorry for the late answer.
It's just that I find it difficult to know what unit to add and what function to use, so embedding it in classes make it more intuitive.
Thanks.
I'm not very good at this issues. Feel free to improve this code and post your modified version.
Bookmarks