Changed Java version to 1.8
Moved pattern example to pattern package