added wirter.php which has some errors.