Adding function library and prototype function