Some code I did for a challenge