Exercsie7 modified