Completing exercises for week4