First (incomplete!!) version of the parser