started solving ex4.1a