1. finish pv analize;
2. move logic code to logic file.