Code still working. next step: gradL.