added coin class

Added the coin class and changed the name of a command. Also added a
function to create a coin, but didn't implement it.