first version of analysis (beginning)