adding the logic for the starter app