added initial core library code