added method getAmount()