Filled in function subs with solution