created function library for cds course