added implementation of pure in Either