A little personal exercise to improve my coding skills