example program abour searching diamonds manually