J3: Exactly Electrical

Be sure to grab the test files for this challenge and test your program with all of them.