lastButOne using init and last
changed the pattern match to be better :)