Completed function exercises