Using hash for initializer