Fully tested and working PIP2 model (PIP23.py)