Text this: Generating mutually unbiased bases and discrete wigner function for three-qubit system