First "working" implementation of all components

It works it works it... wow that code is ugly. But it works!