Shouldn't we use len(array) here instead of the hard coded 16?