Having trouble with scope method