playing with arrays, ruby has a first and last metho, otherwise same as python