main is now a real class