added namespace and insert_fraction function to make make compiling run