Completed ex18 and ex19 after a few days of procrastinating :P