added coin class