Creating 3d cube simplified

Finished the task.