finished Manager.php