Add a condition check before running code.
Add exec-maven-plugin to pom.xml.
Finish exercise2.