compiling and almost linking; main got lost on the way