library module created to place all the common functions.