{
    final Employee employee1 = new Employee();
    employee1.setStaffNo(1234);
    employee1.setFirstname("Lucy");
    employee1.setLastname("Smith");
    employee1.setSex("w");
    employee1.setDepartment("research");
    this.employees.put(employee1.getStaffNo(), employee1);

    final Employee employee2 = new Employee();
    employee2.setStaffNo(3210);
    employee2.setFirstname("Jack");
    employee2.setLastname("Jonson");
    employee2.setSex("m");
    employee2.setDepartment("purchase");
    this.employees.put(employee2.getStaffNo(), employee2);
  }
 /** @return the staffNo of the created employee */
 public synchronized int createEmployee(Employee employee) {
   final int staffNo = createNewStaffNo();
   employee.setStaffNo(staffNo);
   this.employees.put(employee.getStaffNo(), employee);
   return staffNo;
 }
 public synchronized void update(int staffNo, Employee employee) {
   employee.setStaffNo(staffNo);
   this.employees.put(staffNo, employee);
 }