this is a simple example to proof of work algorithm
you can change the difficulty as you please but the higher the number the higher the waiting period for the resulting hash. in bitcoin's network the difficulty is 16
the nonce is the number you change to manipulate the hash since you can't change the info inside the block (the data)