Add constructor for from classpath