adding min example with method reference and Optional