Buy one from Makerbot and follow the instructions.
http://www.popsci.com/diy/article/2010-06/making-makerbot