through lecture 5.2 and started on huffman project
times() function