renamed some things and bring a bit logic to our project, please use namespaces and way i use in index.php