moved methods from header to implementation
added array and boolean tests