added core.py
added core2.py
added core3.py