create code and pass initial spec