finished coding Trent