Added functionality to take quiz