Integrated cube classes with Main program