This tutorial should be helpful.