FINAL CODE ON BAG & TAG