The ground- and excited-state wavefunctions of A=6 nuclei in terms of the three-body model