code from codecademy course on PHP