chapter 4:write "rule for up to repository"