Implemented all basic rules of go.