added test code using decimal class