finishes all of day12 homework's functions.