first attempt to implement Label class