Refactored Numbers Code

Instead of multiple mains, I put everything into classes and can run all
through one main.