Added Lookup Table

This uses lookup table and will dynamically build the refrence table
from the data on each run so if we want to change the refrenceing method
it will be easy with each Run