make directory a java project
modify the implementation of the cart, fix merge method