A Java-based example for building data analysis tools