exercsie3 modified