made the main class pythonic, and not javaesque