example of using serial&parallel