Variable scoping

Change my targets array variable to an instance variable