first add of code from APMA 935 project