class completed code