tested hw3_peter.hs and fixed 3b and added brennen's 3a