JPA exercises, not completely implemented