commit of if else solutions and array and for loop fixes