What is the difference between iPhone 2g and iPhone 3g?

2g is 2nd generation 3g is 3rd generation