Added `typeOf` method

Resolved #35
same