methods practice and variable scope hw