triangle first attempt