prettity code example and offline mode