Rewrote to make more object-orientated

Objectified the label data.