<?php

   $colStudents = StudentFactory::getByLastName("Kowalski");
   print "<h1>Studenci o nazwisku 'Kowalski'</h1>";
   foreach($colStudents as $objStudent) {
      print $objStudent->name . "<br>\n";
}
?>