Code from Coderbyte challenges.