Simple Java Project with tree patterns