add caculating cart method basically