implemented arrays for sonar data