adding the first solutions for week4 assignment