Move variables inside inner class