Jay R. Ferguson wasn’t out of work long: His ABC comedy The Real O’Neals‘ was cancelled Thursday, and his new CBS sitcom By the Book was ordered to series Friday, TVLine has learned.

Ferguson and David Krumholtz (Numb3rs) will star in the multi-cam series — formerly known as Living Biblically — from Patrick Walsh, The Big Bang Theory‘s Johnny Galecki and others.

The series, based on the bestselling book by A.J. Jacobs, follows a modern-day man who chooses to live his life according to the Bible.

The cast also includes Ian Gomez (Supergirl, Cougar Town), Camryn Manheim (The Practice), Lindsey Kraft (Getting On) and Tony Rock (Everybody Hates Chris).