added solutions for Q1 & Q6