refactoring
solved in go:problem1
solved in golang: problem2
solved in golang: problem3
solved in d: problem5
solved in golang: problem5
solved in d: problem6