Code added to read from firebase