implement makeFollow method in grammar class