started building the analyze part