Worked on GRAM function
Please work
please...
so close