A Java Library for a generic coin