added cart in API layer see #22