Get laws function