For assignment2