I had a go at doing baller95's homework, in php.