Updated code with maven.