Added 2nd part of 7th task.