+ Made methods static
+ added answer to 1d to the file