Completed exercise on internal functions