First version of assignment 3, Brute completed