copied examples from class