Added smart cart that manages quantities