adding vertex code for cube

untested