minimal changes in class coin