There's a detailed, step by step tutorial with templates here.