Add core.py, main.py and view.py