Updated set_amount method to fix 'no implicit conversion of Fixnum into String' error when specifying amount