class coin with some behavior
and some changes