do we need to use an instance variable or would a local variable also do the job?