Update to second part so that it does not use arraylist