Test code from the site.
Added empty methods.
Modified to run test.
Added the new class of pricing rule.
Implemented the logics.