Add constant time function for problem 1 and profile utility