created add cube method