Added state() and equals() functions to label