refactor 'pure' as a static function
added Misc class for misc functions such as id, compose, appop (application operation)