Law directs teaching of phonics