Write code version in a cleaner way