added requirement flag of parameters
added example