knows value of coins inserted