BitRights class added, sample edited