Badge code

resolves #61