Adding a PHP style list implementation