Finished implementing l() function.