Use within for simplifying code