made graph number 2 through brute force