Added the flatten method and specs
Added pick method and specs