Fixed code example for maxOption