Script call to change party members class?

Looking for a simple script call to change a party members class. not a specific actor.
$gameParty.members()[0].changeClass(classId, keepExp)

where 0 means the leader, 1 means the first follower, etc. classId is the new class id with no leading zeros, and keepExp is either true or false.
thank you Shaz! nobody specified before that keepExp wasnt part of the code, and needed to be replaced with "true" or "false". works perfect now.
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/script-call-to-change-party-members-class.132246/