played around getter logic and incorporated code inside toString