shopping cart added and code revised