Assignment Completed

Two functions written as required.