Using Shannons Expansion To Encode Messages