A library for D and L