Done shopping cart application with code optimization