Retail Calculator for a Java class