An Analysis of a Smart Meter