turned common.php into a class, Common.php