Started coding wave function hierarchy