added echo statements to provide verbosity for Task.1.php