Added smooth method to spectrum class