Made data protected and added method to get all data