changed pay to computepay as required by assignment
added doctest with Za