code sample for week 3