adding Rights class