full scala app for parsing