extracted command prompt class