Six bar mechanism simulation using MATLAB