intial add, array comparison is working with sample code am not using sort as instructed.