Theoretical Framework For Water Quality