Started with calculating quality factors