surnames and putting to console