range & case when practice