finished in class code