made it PHP 5 compatible (__constructor? - what's that?)