Added Calc Template for Java