changed to jdk7
little flow diagram work