design and construction of a power failure and resumption alarm