Added begin solution for ex4 and 5