added: getter and setter for amount