File modified to fill in the functions