PHP4 compatibility with exercise 1