write spec