add leave function in Role class.