Fixed usage of coin class definition.