value retrieval moved to a separate method.
retrival succesfully moved to a seperate class.