week 1 hw and pattern library