Add foundation library.

I'd actually already made this.