twisted introduction code