completed 4 exercises below