add macro
create Cube class and use in on main