initial add of original code from college