Some new tutorial codes