just some code I put together for codeval