add answer for 2 and 3 in Go