7th and 8th task from Classes part 2