createCube now takes center as input