Finished Basic example 2.