Let's create a script and add it to the cube.
Select the Cube object in the Hierarchy window.
You should see the Inspector window change to reflect the properties of the cube.
On the Inspector window, select the Add component button at the bottom.
A new drop-down list appears.
Enter the word new and choose New script.
Enter SpinCube as the name of the script and select the Create and Add button. This should add this new script to your cube.
You should also see the script appear in your Assets folder in the Project window on the bottom of the editor.
You're now ready to edit that script and create some movements!