wrote specs for Either