implement label class