class that holds object of employee