first prototype with sending results by email