Fixed cube function.  Argument length wasn't working correctly.