adding 3d codes + lebesgue stuff + half of pyramid stuff