class defination added nested chained reference yet to complete
New Baseline: class structure added, functions added