pluggable calculator written in java