Data structure answer exercise3