simple program showed use case of JPA