Added sample solution for exercises