added profile.php with profile class and methods