Add some basic codes and delete unnecessary codes