implemented first version of toy analysis