Simplified and removed pointers and references.
Commented pointer retrieval.