Create pension2.py

Refactored pension.py