modularized Main.py and implemented properties of numbers button