Code for cube