mbapCh3.py