what is the function of a beaker