Wrote the weekend coding challenge