I came across an installation today where there were two puck lights in a permanantly installed bookcase. The attic above it had a single run of SPT-2 lamp cord coming out of a hole in the top plate of the wall below and running directly into a jbox. Ovbiously a code violation, not to mention a hazardous install. How can this be done in a compliant fashion? Are there any puck lights that can be wired with a chapter 3 wiring method? I am not exactly sure what is between these two puck lights and the single cord I saw. I dont know if theyre low voltage and there is a transformer buried inside the wall..