Addidions to 3a and 3b and added task 4