Update function.hpp