working method to get list of shares