Analysis of Pin-Jointed frames