The code I put together  while studying for CS50x