Erlang like record manipulator