Simlifing chapter2 example job