adding model/spn.py