completed building unit tests and final class.