Expanded code by adding more examples