Final version of Main with old-school println