Statics of Granular Media