a small java prog to aid my gf with her thesis