working pom4 with cost and value