Cart functions

Implement cart function conbined with session.