the mailpilot done in class