Added function signatures left to complete the #11. Implemented some of them. More implementations and tests are TODO.