Added the code for Buying.

But not all of it.