introduction code and theory updated