added 2 functions for weekly assignment