added job application logic and email class