add implementation of cube with controlls