added week2 homework file with lecture's functions