basic implementation of foundation library