initialized third assignment code