For using copyrighted material you need to first take the permission from the actual author and also cite the material wherever used.