Added cube, More organized main() method.