major update to coin class