updated coin class