Reusable UI components: Reussing the logger directive. Creating directive and controller and using them on the boxes SVG