function recognizes dimes
machine now accepts quarters