changed the start position to 1 like in the book