update Currency class to allow parametrized constructor