add java doc in cart.java
cart javadoc