I've tried to use methods native to arrays to solve this. I am not sure where this is going wrong. the problems lies in line 26 i believe.