https://scratch.mit.edu/projects/967944592 and https://scratch.mit.edu/projects/995914266
Credit to @Bachir05