Add grains, pass all tests

Added grains.rb containing class Grains with methods square and total. Passing
all tests.