My attempt at the challenges