Implement the function Z = A'B'C'D + A'B'C + A'B + A + BD + B using the PLA provided below.
Extra credit: Implement the function yet again using the 3:8 decoder provided below and as few extra gates as possible.