experimental code from class