An approach to solve job shop scheduling problem