Partial solution for 1-6