Added coin functionality
merged