Simplify Builder

generic method to add functions