geting density out from get_info class; testing in main