Solving the peak demand problem with peer-to-peer technology