the equal protection clause is not infringed by legislation which applies only to those persons falling within a specified class , if it applies alike to all persons within such class , and reasonable grounds exists for making a distinction between those who fall within such class and those who do not .