All functions implemented except displayhistrogram. test class also added to test object