You don't seem to be initializing the amount data member properly.

Printable View