Implementation of parser. Added tests.