third assignment first attempt