sqweek's solution for challenge 0x03