Three-tier Storage Systems based on Fog Computing