Functionals_Personal: Arranged code to a tarnary code. Code testing approved!