use array#first instead of array[0] because more idiomatic. fixes #93