some old code for learning django