Create stockbased.py