initial scala files and some old prolog stuff