Implemented simple power network using BC's abstract classes from its API.