Changed order of parameters and added more detail to the example