added coin class and finished coin