Legendre and Laguerre implemented