Create source.py

Added basic functions