Email Record: Problem solving using Pascal