Implementing a small, built-in library