I made this with a tutorial. There are functions to rotate, move and scale the cube. Right now it's just spinning but I might change it.
Thanks to @MathMathMath for the tutorial!