Add spec code to exercises