trying law of cosines...