home work 2 (intermediate php)