first part for ex4