printAmount method added to Money class